package advance_2;

public class CharTest {
    public static void main(String[] args) {
        String str="我喜欢java8\n李金泽喜欢藏金控";
        char[]cr=str.toCharArray();
        for(char c:cr){
            System.out.println(c+" 是否是数字 "+Character.isDigit(c));
            System.out.println(c+" 是否是字母 "+Character.isLetter(c));
            System.out.println(c+" 是否是小写 "+Character.isLowerCase(c));
            System.out.println(c+" 是否是大写 "+Character.isUpperCase(c));

            System.out.println(c+" 是否是空白 "+Character.isSpaceChar(c));
            System.out.println(c+" 能不能作为unicode开头 "+Character.isUnicodeIdentifierStart(c));

            System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>.");
        }
    }
}
